package com.mycompany.sigemp.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class ControladorAjax {
	
	@RequestMapping(value = "/preguntar.htm", method = RequestMethod.GET)
    public @ResponseBody String preguntar(@RequestParam String pregunta){
        return "Su pregunta es :"+pregunta;
    }
	
    @RequestMapping(value = "/saludar.htm", method = RequestMethod.POST)
    public @ResponseBody String saludar(@RequestParam String saludo){
        return "Hola"+saludo;
    }
 

}
